Skip to content

button-group: migrate to TUI SegmentedControl - #82

Open
juliacanzani wants to merge 2 commits into
mainfrom
feat/button-group-tui
Open

button-group: migrate to TUI SegmentedControl#82
juliacanzani wants to merge 2 commits into
mainfrom
feat/button-group-tui

Conversation

@juliacanzani

Copy link
Copy Markdown
Contributor

Stacked on #78 (the ^0.2.0 bump). Retargets to main once #78 merges.

button-group is a single-select radiogroup (react-aria useRadioGroup) rendered as segments — now TUI's SegmentedControl, in the Field idiom. A 1:1 family match (SegmentedControl is a radiogroup).

Contract preserved (verified live): the selected key, carried by a hidden input for form submission (react-aria's native radios did that before). Dashicon options → SegmentedControl.Item icon + aria-label; disabledKeys honoured. Removed ButtonOption.tsx.

tsc 422 → 420; rebuilt bundle.

🤖 Generated with Claude Code

juliacanzani and others added 2 commits July 30, 2026 20:35
Picks up MultiCombobox (searchable multi-select — needed for the combo-box
field migration's multiple+async case), Chip onRemove, and the Combobox
aria-describedby/invalid/required forwarding fix.

Compat: TUI 0.2.0's Button dropped the `iconSize` prop (icons size
intrinsically now) — removed it from the base Button wrapper + its story.
tsc error count unchanged from 0.1.x (422 pre-existing); rebuilt bundle.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
button-group is a single-select radiogroup (react-aria useRadioGroup) rendered
as segments — now TUI's SegmentedControl, in the Field idiom. Value contract
preserved (verified live): the selected key, carried by a hidden input for form
submission (react-aria's native radios did this before). Dashicon options map to
SegmentedControl.Item `icon` + `aria-label`; disabledKeys honoured. Removed
ButtonOption.tsx.

tsc 422 -> 420; rebuilt bundle.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@nicolas-jaussaud
nicolas-jaussaud changed the base branch from feat/tui-0.2.0-bump to main August 3, 2026 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant